package com.example.myapplication.activity.base_activity;

import androidx.appcompat.app.AppCompatActivity;

import android.graphics.Color;
import android.os.Bundle;
import android.widget.TextView;

import com.example.myapplication.R;

public class TestColorActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_color);
        TextView textView = findViewById(R.id.tv_color);
        textView.setTextColor(Color.GREEN);

        TextView textViewBackground =findViewById(R.id.tv_background);
//        textViewBackground.setBackgroundResource(R.color.black);
        textViewBackground.setBackgroundColor(Color.GREEN);
    }
}